package model;

public class Label {
	private String name;
	private final String L = "L";
	private static int currentId = 0;
	
	public Label(int id){
		this.name = L+id;
	}
	
	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public static int getCurrentId() {
		return currentId;
	}



	public static void setCurrentId(int currentId) {
		Label.currentId = currentId;
	}



	public static Label getLabel(){
		return new Label(currentId++);
	}
	
	public String toString(){
		return getName();
	}
}
